﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <!--Colors-->

    <Color x:Key="Font_Color_DarkBlue">#ff575f80</Color>
    <Color x:Key="Font_Color_Blue">#ff1a85dc</Color>
    <Color x:Key="Font_Color_LightBlue">#ff7bb0db</Color>
    <Color x:Key="Font_Color_Black">#FF3F445A</Color>
    <Color x:Key="Font_Color_Gray">#ff949494</Color>

    <Color x:Key="Color_Normal">#FF019FCC</Color>
    <Color x:Key="Color_Warning">#FFFFAA00</Color>
    <Color x:Key="Color_Error">#FFFF2900</Color>

    <SolidColorBrush x:Key="StatusConnected">#FF82B93A</SolidColorBrush>
    <SolidColorBrush x:Key="StatusConnecting">#FFFFAA00</SolidColorBrush>
    <SolidColorBrush x:Key="StatusChecking">#FF019FCC</SolidColorBrush>
    <SolidColorBrush x:Key="StatusDisconnected">#ff293955</SolidColorBrush>
    <SolidColorBrush x:Key="StatusError">#FFFF2900</SolidColorBrush>



    <SolidColorBrush x:Key="Font_Brush_DarkBlue" Color="{StaticResource Font_Color_DarkBlue}"/>
    <SolidColorBrush x:Key="Font_Brush_Blue" Color="{StaticResource Font_Color_Blue}"/>
    <SolidColorBrush x:Key="Font_Brush_LightBlue" Color="{StaticResource Font_Color_LightBlue}"/>
    <SolidColorBrush x:Key="Font_Brush_Black" Color="{StaticResource Font_Color_Black}"/>
    <SolidColorBrush x:Key="Font_Brush_Gray" Color="{StaticResource Font_Color_Gray}"/>

    <SolidColorBrush x:Key="Brush_Normal" Color="{StaticResource Color_Normal}"/>
    <SolidColorBrush x:Key="Brush_Warning" Color="{StaticResource Color_Warning}"/>
    <SolidColorBrush x:Key="Brush_Error" Color="{StaticResource Color_Error}"/>

    <!--Colors-->

    <!--Status Bar-->


    <Style TargetType="Separator" x:Key="StatusBar_Separator">
        <Setter Property="Foreground" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Width" Value="1"/>
        <Setter Property="Margin" Value="5,5,15,5"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
    </Style>

    <Style TargetType="TextBlock" x:Key="StatusBar_Text">
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="FontSize" Value="10"/>
    </Style>

    <Style TargetType="StatusBar">
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Foreground" Value="White" />
        <Setter Property="Background" Value="{StaticResource Brush_Normal}" />
        <Setter Property="Padding" Value="5,0,15,0" />
    </Style>


    <!--Status Bar-->


    <!--Main Content-->

    <LinearGradientBrush x:Key="MainContent_Background_Color" EndPoint="0.5,1" StartPoint="0.5,0" >
        <GradientStop Color="#FFF0F5FB" Offset="0"/>
        <GradientStop Color="White" Offset="0.20"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MainContent_Border_Color">White</SolidColorBrush>
    <Style TargetType="Border" x:Key="MainContent_Background">
        <!--<Setter Property="BorderBrush" Value="{StaticResource MainContent_Border_Color}"/>
        <Setter Property="BorderThickness" Value="0.5"/>-->
        <!--<Setter Property="CornerRadius" Value="3,3,0,0"/>
        <Setter Property="Margin" Value="0,5,0,0"/>-->
        <Setter Property="Background" Value="{StaticResource MainContent_Background_Color}"/>
    </Style>


    <LinearGradientBrush x:Key="MainContent_InfoBar_Background_Color" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFD1D8E2" Offset="0"/>
        <GradientStop Color="#FFF1F4FB" Offset="0.030"/>
        <GradientStop Color="#FFF1F5F8" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MainContent_InfoBar_Border_Color">#ffccd9ea</SolidColorBrush>
    <Style TargetType="Border" x:Key="MainContent_InfoBar">
        <Setter Property="BorderBrush" Value="{StaticResource MainContent_InfoBar_Border_Color}"/>
        <Setter Property="BorderThickness" Value="0,0.5,0,0"/>
        <Setter Property="Background" Value="{StaticResource MainContent_InfoBar_Background_Color}"/>
    </Style>

    <!--Main Content-->

    <!--ToolBar-->

    <LinearGradientBrush x:Key="ToolBar_Background" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFDBE5F4" Offset="0.482"/>
        <GradientStop Color="#FFDCE7F5" Offset="0.96"/>
        <GradientStop Color="White"/>
        <GradientStop Color="#FFE8F1FB" Offset="0.458"/>
        <GradientStop Color="#FFF4F9FF" Offset="0.024"/>
        <GradientStop Color="#FFE3EEFB" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ToolBar_Background_Down" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFC9D4E4" Offset="0"/>
        <GradientStop Color="#FFCFDCED" Offset="1"/>
        <GradientStop Color="#FFDFEAF4" Offset="0.104"/>
        <GradientStop Color="#FFDBE6F2" Offset="0.498"/>
        <GradientStop Color="#FFCFDBEC" Offset="0.53"/>
    </LinearGradientBrush>
    <Style TargetType="Border" x:Key="ToolBar">
        <Setter Property="BorderThickness" Value="0,0,0,0.5"/>
        <Setter Property="BorderBrush" Value="#FFA5AEB7"/>
        <Setter Property="Background" Value="{StaticResource ToolBar_Background}"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="MinHeight" Value="32"/>
    </Style>


    <Style TargetType="Button" x:Key="ToolBar_Button">

        <Setter Property="Foreground" Value="{StaticResource Font_Brush_DarkBlue}"/>
        <Setter Property="FontWeight" Value="Medium"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="MinWidth" Value ="20"/>

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid x:Name="grid"  >
                        <Border x:Name="border" BorderThickness="0.5" CornerRadius="2" Padding="5,0">
                            <ContentPresenter HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            TextElement.FontWeight="Bold"></ContentPresenter>
                        </Border>
                    </Grid>

                    <ControlTemplate.Triggers>

                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="border" Property="Background" Value="{StaticResource ToolBar_Background}"/>
                            <Setter TargetName="border" Property="BorderBrush" Value="#FFA5AEB7"/>
                            <Setter TargetName="border" Property="BorderThickness" Value="0.5"/>
                            <Setter TargetName="border" Property="CornerRadius" Value="2"/>
                        </Trigger>

                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="border" Property="Background" Value="{StaticResource ToolBar_Background_Down}"/>
                            <Setter TargetName="border" Property="BorderBrush" Value="#FFA5AEB7"/>
                            <Setter TargetName="border" Property="BorderThickness" Value="0.5"/>
                            <Setter TargetName="border" Property="CornerRadius" Value="2"/>
                            <!--<Setter TargetName="border" Property="Opacity" Value="0.75"/>-->
                            <Setter Property="Foreground" Value="{StaticResource Font_Brush_Black}"/>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Opacity" TargetName="grid" Value="0.25"/>
                            <Setter Property="Foreground" Value="Gray"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>



    </Style>

    <Style TargetType="Button" x:Key="ToolBar_Button_Transparent">

        <Setter Property="FontWeight" Value="Medium"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="MinWidth" Value ="20"/>

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid x:Name="grid"  >
                        <Border x:Name="border" BorderThickness="0.5" CornerRadius="2" Padding="5,0">
                            <ContentPresenter HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            TextElement.FontWeight="Bold"></ContentPresenter>
                        </Border>
                    </Grid>

                    <ControlTemplate.Triggers>

                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="border" Property="Background">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#99D3D9E2" Offset="0.482"/>
                                        <GradientStop Color="#B2C4C8CD" Offset="0.96"/>
                                        <GradientStop/>
                                        <GradientStop Color="#33E8F1FB" Offset="0.458"/>
                                        <GradientStop Color="#0CF4F9FF" Offset="0.024"/>
                                        <GradientStop Color="#E5B0B5BB" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="border" Property="BorderBrush" Value="#FFA5AEB7"/>
                            <Setter TargetName="border" Property="BorderThickness" Value="0.5"/>
                            <Setter TargetName="border" Property="CornerRadius" Value="2"/>
                        </Trigger>

                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="border" Property="Background" Value="{StaticResource ToolBar_Background_Down}"/>
                            <Setter TargetName="border" Property="BorderBrush" Value="#FFA5AEB7"/>
                            <Setter TargetName="border" Property="BorderThickness" Value="0.5"/>
                            <Setter TargetName="border" Property="CornerRadius" Value="2"/>
                            <!--<Setter TargetName="border" Property="Opacity" Value="0.75"/>-->
                            <Setter Property="Foreground" Value="{StaticResource Font_Brush_Black}"/>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Opacity" TargetName="grid" Value="0.25"/>
                            <Setter Property="Foreground" Value="Gray"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>



    </Style>

    <Style TargetType="ToggleButton" x:Key="ToolBar_ToggleButton">

        <Setter Property="Foreground" Value="{StaticResource Font_Brush_DarkBlue}"/>
        <Setter Property="FontWeight" Value="Medium"/>
        <Setter Property="Margin" Value="0,0,5,0"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="MinWidth" Value ="50"/>

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Grid x:Name="grid"  >
                        <Border x:Name="border" BorderThickness="0.5" CornerRadius="2" Padding="5,0">
                            <ContentPresenter HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            TextElement.FontWeight="Bold"></ContentPresenter>
                        </Border>
                    </Grid>

                    <ControlTemplate.Triggers>

                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="border" Property="Background" Value="{StaticResource ToolBar_Background}"/>
                            <Setter TargetName="border" Property="BorderBrush" Value="#FFA5AEB7"/>
                            <Setter TargetName="border" Property="BorderThickness" Value="0.5"/>
                            <Setter TargetName="border" Property="CornerRadius" Value="2"/>
                        </Trigger>

                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="border" Property="Background" Value="{StaticResource ToolBar_Background_Down}"/>
                            <Setter TargetName="border" Property="BorderBrush" Value="#ffbeccdd"/>
                            <Setter TargetName="border" Property="BorderThickness" Value="1"/>
                            <Setter TargetName="border" Property="CornerRadius" Value="2"/>
                            <Setter Property="Foreground" Value="{StaticResource Font_Brush_Black}"/>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Opacity" TargetName="grid" Value="0.25"/>
                            <Setter Property="Foreground" Value="Gray"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>



    </Style>


    <!--ToolBar-->



    <!--General Controls-->

    <!--ProgressBar-->
    <!--<LinearGradientBrush x:Key="ProgressBar_Foreground_Color" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource Color_Normal}" Offset="0.121"/>
        <GradientStop Color="White"/>
    </LinearGradientBrush>
        <Style TargetType="ProgressBar">
        <Setter Property="Foreground" Value="{StaticResource ProgressBar_Foreground_Color}"/>
        <Setter Property="Background" Value="White"/>
        <Setter Property="BorderBrush" Value="#ffbec0c0"/>
        <Setter Property="BorderThickness" Value="1"/>
    </Style>-->
    <!--ProgressBar-->

    <!--Menu-->

    <LinearGradientBrush x:Key="Menu_Backgroud_Color" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF7F9FB" Offset="0.207"/>
        <GradientStop Color="#FFE0E5F5" Offset="1"/>
        <GradientStop Color="#FFD4DBED" Offset="0.518"/>
    </LinearGradientBrush>

    <Style TargetType="Menu">
        <Setter Property="Foreground" Value="{StaticResource Font_Brush_DarkBlue}"/>
        <Setter Property="Background" Value="{StaticResource Menu_Backgroud_Color}"/>
        <Setter Property="BorderBrush" Value="#ffbec0c0"/>
        <Setter Property="BorderThickness" Value="0,0,0,1"/>
    </Style>

    <!--Menu-->

    <!--ListViewItem-->

    <Style TargetType="ListViewItem">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListViewItem">
                    <Grid>
                        <Border x:Name="BRDContorno" BorderThickness="1">
                            <ContentPresenter
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"/>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="BRDContorno" Property="BorderThickness" Value="1"/>
                            <Setter TargetName="BRDContorno" Property="CornerRadius" Value="3"/>
                            <Setter TargetName="BRDContorno" Property="BorderBrush" Value="#FFB9D7FC"/>
                            <Setter TargetName="BRDContorno" Property="Background" >
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFFDFEFF" Offset="0"/>
                                        <GradientStop Color="#FFEDF5FF" Offset="1"/>
                                        <GradientStop Color="#FFF4F9FF" Offset="0.483"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                        </Trigger>


                        <Trigger Property="IsSelected" Value="True">
                            <Setter TargetName="BRDContorno" Property="BorderThickness" Value="1"/>
                            <Setter TargetName="BRDContorno" Property="CornerRadius" Value="3"/>
                            <Setter TargetName="BRDContorno" Property="BorderBrush" Value="#FF97BCEA"/>
                            <Setter TargetName="BRDContorno" Property="Background" >
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFF4F9FF" Offset="0"/>
                                        <GradientStop Color="#FFD0E5FF" Offset="1"/>
                                        <GradientStop Color="#FFE0EEFF" Offset="0.435"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--ListViewItem-->

    <!--General Controls-->
</ResourceDictionary>
